import { PdfDocument } from '@ironsoftware/ironpdf'

// URL to PDF
;(async () => {
  // Render the web URL
  const pdf = await PdfDocument.fromUrl('https://www.google.com')

  // Export the PDF document
  await pdf.saveAs('pdf-from-url.pdf')
})()
